﻿<go:ControlPageBase x:Class="SuperGo.Silverlight.Preferences"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:go="clr-namespace:SuperGo.Silverlight"
    >

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="300" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="350" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Grid Grid.RowSpan="3" Grid.ColumnSpan="3" Background="Gray" Opacity=".7" />

        <go:GoPanel x:Name="_goPanel" Title="Preferences" Grid.Row="1" Grid.Column="1" Width="300">
            <StackPanel Orientation="Vertical">
                <TextBlock x:Name="_errorMessage" Visibility="Collapsed" TextWrapping="Wrap" Foreground="Red" />
                
                <Grid>
                    <TextBlock Text="Name" />
                    <TextBlock Margin="0,0,0,10" Width="Auto" HorizontalAlignment="Right" Text="{Binding PlayerName, Mode=OneWay}" />
                </Grid>
                <Grid>
                    <TextBlock Text="IGS Username" />
                    <TextBox Width="180" HorizontalAlignment="Right" Text="{Binding Username, Mode=TwoWay}" />
                </Grid>
                <Grid>
                    <TextBlock Text="IGS Password" />
                    <TextBox Width="180" HorizontalAlignment="Right" Text="{Binding Password, Mode=TwoWay}" />
                </Grid>
                <Grid>
                    <TextBlock Text="E-mail" />
                    <TextBox Width="180" HorizontalAlignment="Right" Text="{Binding Email, Mode=TwoWay}"/>
                </Grid>
            </StackPanel>

            <go:ButtonPanel x:Name="_buttonPanel" VerticalAlignment="Bottom" Height="24">
                <Button x:Name="_submit" Content="Submit Changes" />
                <Button x:Name="_cancel" Content="Cancel" />
            </go:ButtonPanel>
        </go:GoPanel>
    </Grid>
</go:ControlPageBase>
